package com.elangzhi.ssm.controller.editor;

import com.baidu.ueditor.ActionEnter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;

/**
 * UEditor 编辑器后台
 * @author GaoXiang
 * @version 1.0
 */
@Controller
@RequestMapping("/editor")
public class EditorController {

    /**
     * 后端配置返回
     * @return
     */
    @RequestMapping("/controller")
    @ResponseBody
    public String controller(HttpServletRequest request){
        String rootPath = request.getServletContext().getRealPath( "/" );
        return new ActionEnter( request, rootPath ).exec();
    }



}
